<?php
    header('Content-Type:application/json');
    $pwd = $_REQUEST['uPassword'];
    $tel = $_REQUEST['uPhone'];
    $conn = mysqli_connect('127.0.0.1','root','','nubia','3306');
    mysqli_query($conn,'SET NAMES UTF8');
    $sql = "SELECT user_id,user_name,user_phone FROM nubia_users WHERE user_phone='$tel' AND user_pwd='$pwd'";
    $result = mysqli_query($conn,$sql);
    $arr = [];
    if($row = mysqli_fetch_assoc($result)){
        $arr[]=$row;
    }
    echo json_encode($arr);

